package com.lcz.authority.common.domain.model;

import com.lcz.authority.common.domain.entity.SysRoleResourceEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author lcz
 * @desc 角色身份验证
 * @mail lcz_0130@163.com
 * @date 2024/05/06
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysRoleAuth {

    /**
     * 角色id
     */
    String roleId;

    /**
     * 权限字符
     */
    String perms;

    /**
     * 资源编码
     */
    String resourceCode;

    public SysRoleAuth(SysRoleResourceEntity roleResourceEntity) {
        this.roleId = roleResourceEntity.getRoleId();
        this.resourceCode = roleResourceEntity.getResourceCode();
    }
}
